package com.example.boot.modules.marketing.convert;

import com.example.boot.modules.marketing.entity.Carousel;
import com.example.boot.modules.marketing.vo.CarouselVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author 王令
 * @since 2024/2/28
 */
@Mapper
public interface CarouseConvert {

    CarouseConvert INSTANCE = Mappers.getMapper(CarouseConvert.class);

    @Mapping(target = "items", ignore = true)
    CarouselVo toVo(Carousel carousel);
}
